package com.yaj.myfactorysupport.controller;


import com.yaj.myfactorysupport.service.VTmLineService;
import com.yaj.myfactorysupport.util.RespBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wei
 * @since 2021-05-31
 */
@Api(tags = "VTmLineController")
@RestController
@RequestMapping("/myfactorysupport/v-tm-line")
public class VTmLineController {
    @Autowired
    private VTmLineService vTmLineService;

    @ApiOperation(value = "取得产线ID产线名称一览")
    @GetMapping("getLineList")
    public RespBean getLineList(){
        return vTmLineService.getLineList();
    }

    @ApiOperation(value = "根据产线Id取得产线名")
    @GetMapping("getLineNameByLineId")
    public RespBean getLineNameByLineId(@RequestParam(value = "lineId") String lineId) {return vTmLineService.getLineNameByLineId(lineId);}
}

